<template>
	<view>
		<navbar mode="normal" :title="title"></navbar>
		<view class="content" v-if="canshow">
			<view class="none" v-if="list.length == 0">啥也没搜到哦，换个关键字试试吧~</view>
			<view class="list" v-else>
				<goods-full-card-list :goodsList="list" :notifyNoMore="true"></goods-full-card-list>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				canshow:false,
				type:0,
				list:[],
				title:""
			};
		},
		onLoad(data) {
			this.title = data.title
			this.type = data.type
			this.$request("goods/get",{type:this.type},(res)=>{
				this.list = res.data.data
				//console.log(this.list);
				this.canshow = true
			})
		}
	}
</script>

<style lang="scss">
.content{
		display: flex;
		flex-direction: column;
		align-items: center;
		.none{
			font-size: 30rpx;
			margin-top: 20rpx;
			color: $my-main-color;
		}
	}
</style>
